<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>   
<c:forEach items="${incomeAndExpensesList}" var="c">
 <c:if test="${c.free_cash != 0.00 }">
	<c:if test="${'ios'==os}">
 		<li class="clearfix" onclick="GetToken(${c.income_and_expenses_id})">
    </c:if>
	<c:if test="${'wechat'==os ||'web'==os}">
 		<li class="clearfix" onclick="GetDetail(${c.income_and_expenses_id})">
    </c:if>
    <c:if test="${'android'==os}">
     	<li class="clearfix" onclick="android.startUrl('交易明细','${incomeAndExpensesLogOne_url}','incomeAndExpenses_id->${c.income_and_expenses_id}')">
    </c:if>
		<p class="leftArea">
			<c:if test="${c.type==1 and c.pay_type ==null}"><span>离线充值</span><br></c:if>
		    <c:if test="${c.type==1 and c.pay_type !=null}"><span>余额充值</span><br></c:if>
			<c:if test="${c.type==2 }"><span>${c.award_name }</span><br></c:if>
			<c:if test="${c.type==3 }"><span>退款</span><br></c:if>
			<c:if test="${c.type==4 and c.state == 2 and c.log_cash_draw_state == 0}"><span>余额提现(提现中)</span><br></c:if>  
			<c:if test="${c.type==4 and c.state == 2 and c.log_cash_draw_state ==1}"><span>余额提现</span><br></c:if> 
			<c:if test="${c.type==4 and c.state == 2 and c.log_cash_draw_state ==2}"><span>余额提现(提现失败)</span><br></c:if>  
			<c:if test="${c.type==5 }"><span>购物&nbsp;（订单号：${c.order_no}）</span><br></c:if>
			<c:if test="${c.type==6 }"><span>${ticket_name}充值</span><br></c:if>
			<fmt:parseDate value=" ${c.create_time}" var="date" pattern="yyyy-MM-dd HH:mm:ss"/>  
			<span class="time"><fmt:formatDate value="${date}" pattern="yyyy-MM-dd HH:mm" /></span>
		</p>
		<p class="rightArea <c:if test="${c.bill_type == 2 }">col-arresting</c:if>">
			<c:if test="${c.bill_type == 1 }">-</c:if>
			<c:if test="${c.bill_type == 2 }">+</c:if>
			<c:if test="${memberId !='758' }"> 
                 <fmt:formatNumber value="${c.free_cash-c.special_pay_back}" pattern="#0.00" maxFractionDigits="2"/>
			</c:if> 
			<c:if test="${memberId =='758' }"> 
                 <fmt:formatNumber value="${c.free_cash}" pattern="#0.00" maxFractionDigits="2"/>
			</c:if> 
		</p>
	</li>
 </c:if> 
</c:forEach>	
